package com.miaoxun.dao;

import com.basemapper.BasicMapper;
import com.miaoxun.dao.provider.MenuProvider;
import com.miaoxun.domain.entity.Menu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Component;



import java.util.List;

/**
 * 菜单管理
 *
 * @author ruoshuisixue
 * @email ruoshuisixue@sina.com
 * @date 2017-11-17 14:38:42
 */
@Mapper
@Component
public interface MenuMapper extends BasicMapper<Menu> {



	@SelectProvider(type = MenuProvider.class,method = "listMenuByUserId")
	List<Menu> listMenuByUserId(Long id);

	@SelectProvider(type = MenuProvider.class,method = "listUserPerms")
	List<String> listUserPerms(Long id);
}
